[FEAT] CI & Swiftlint autocorrect 깃허브 액션 추가#98
Merged
Conversation
- 컨벤션 파일 제거로 인한 빌드 파일 수정
- Run SwiftLint 스크립트 추가 - SwiftLint rule 파일 추가
- Build 테스트 포함 - Swiftlint 테스트 포함
- Debug.xcconfig를 Resource 폴더에 추가함 - 해당 파일은 ignore로 걸러지도록 함 - info에 Key의 이름을 등록해두어 Bundle로 찾도록 설정
- 새로운 Debug.xcconfig를 무시하도록 수정 - 기존 ignore 설정을 보기 쉽게 정리
- Secrets.swift의 enum을 열도록 할 예정 - 해당 파일에서 Key 호출을 위한 여러 컴퓨티드 프로퍼티 제공 - 변경된 프로퍼티에 맞게 호출 코드도 일부 수정
- 깃헙 액션에 맞게 파일 이름 수정 - CI → ci - Swiftlint autocorrect → swiftlint-autocorrect - 추가로 autocorrect의 작동 시기를 Push → PR open으로 수정하여 깃액션 작동 빈도를 줄임
- Secrets enum을 대체할 KeyPath enum을 추가 - gitignore에서 Secrets.swift 추적 제한 제거 - 빌드 파일 수정
Closed
- 몇몇 이모지가 생각보다 촌스러워서 수정함
Member
Author
Member
Author
…pply-CI-with-swiftlint # Conflicts: # Poppool/Poppool/Application/AppDelegate.swift # Poppool/Poppool/Presentation/Admin/AdminRegister/PopUpStoreRegisterViewController.swift # Poppool/Poppool/Presentation/Admin/Data/MapDomain/MapPopUpStore.swift # Poppool/Poppool/Presentation/Map/Common/GMSMapViewDelegateProxy.swift # Poppool/Poppool/Presentation/Map/Common/MapUtilities.swift # Poppool/Poppool/Presentation/Map/FillterSheetView/FilterBottomSheetView.swift # Poppool/Poppool/Presentation/Map/FillterSheetView/FilterBottomSheetViewController.swift # Poppool/Poppool/Presentation/Map/FindMap/MapGuideView/FullScreenMapViewController.swift # Poppool/Poppool/Presentation/Map/FindMap/MapGuideView/MapGuideViewController.swift # Poppool/Poppool/Presentation/Map/MapView/MapMarker.swift # Poppool/Poppool/Presentation/Map/MapView/MapView.swift # Poppool/Poppool/Presentation/Map/MapView/MapViewController.swift Co-Authored-By: ki hyeon kim <creeps1104@gmail.com>
Co-Authored-By: JunYoung <ghddns34@gmail.com>
dongglehada
approved these changes
Apr 4, 2025
Member
dongglehada
left a comment
There was a problem hiding this comment.
시크릿에서 키패스로 변경이 되었군요 변경상항은 확인 하였습니다! 정리해주신 내용 확인해보겠습니다!
| echo "No changes to commit" | ||
| fi | ||
|
|
||
| build: |
Member
There was a problem hiding this comment.
Build Flow를 여기서 정의하는 걸까요..? 신기합니다!
Member
Author
There was a problem hiding this comment.
ci 내부에 여러 jobs을 둘 수 있고 현재 총 두개의 job을 두고 있습니다.
- autocorrect: 해당 job에 포함된 step에 따라 swiftlint 자동 수정 및 수정 내용 커밋
- build: 스텝에 따라 빌드 환경을 구성한 뒤 빌드와 린트 테스트
이 두가지의 작업이 성공적으로 끝나면 PR이 병합될 수 있는 상태로 판단해줍니다!
Contributor
There was a problem hiding this comment.
친절한 설명감사합니다.. 확인했습니다!
zzangzzangguy
approved these changes
Apr 5, 2025
| echo "No changes to commit" | ||
| fi | ||
|
|
||
| build: |
Contributor
There was a problem hiding this comment.
친절한 설명감사합니다.. 확인했습니다!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



📌 이슈
✅ 작업 사항
🚀 테스트 방식
Swiftlint 테스트
깃허브 액션 테스트
변경된 Key 관리 테스트
👀 ETC (추후 개발해야 할 것, 참고자료 등) ->
Caution
이번 PR을 통해 Secrets.swift의 추적 제한이 풀렸습니다❗
PR이 병합되고 난 후 반드시 Secrets.swift를 디렉토리에서 제거하고, 작업자의 커밋에 포함되지 않았는지 꼭 확인해주세요❗❗❗